package com.ctjsoft.fileupload.server.impl;

import com.ctjsoft.fileupload.entity.TFile;
import com.ctjsoft.fileupload.mapper.TFileMapper;
import com.ctjsoft.fileupload.server.TFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TFileServiceImpl implements TFileService {

    @Autowired
    TFileMapper tFileMapper;


    @Override
    public List<TFile> getFileList() {
        return tFileMapper.getFileList();
    }

    @Override
    public int addFile(TFile tFile) {
        return tFileMapper.addFile(tFile);
    }
}
